﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.Core.Validation;
using MvcEngine.Core.Base;

namespace MvcEngine.Contact.Models
{
    public class ContactSettingsViewModel
    {
        public ContactSettingsViewModel(int ctrId, ContactSettings item)
        {
            this.CtrId = ctrId;
            this.SendTo = item.SendTo;
            this.EmailSubjectPrefix = item.EmailSubjectPrefix;
            this.Email = item.Email;
            this.SendTo = item.SendTo;
            this.SmtpPassword = item.SmtpPassword;
            this.SmtpServer= item.SmtpServer;
            this.SmtpServerPort = item.SmtpServerPort;
            this.SmtpUserName = item.SmtpUserName;
        }

        public int CtrId { get; set; }

        public string SendTo
        {
            get;
            set;
        }

        public string EmailSubjectPrefix
        {
            get;
            set;
        }

        public string Email
        {
            get;
            set;
        }

        public string SmtpPassword
        {
            get;
            set;
        }

        public string SmtpServer
        {
            get;
            set;
        }

        public int SmtpServerPort
        {
            get;
            set;
        }

        public string SmtpUserName
        {
            get;
            set;
        }
    }
}
